package com.letv.android.client.controller;

import com.letv.android.client.album.controller.VolumnChangeStyle;
import com.letv.core.utils.LetvBaseObservable;

/**
 * 手势观察者
 * 
 * @author zhuqiao
 *
 */
public class AlbumGestureObservable extends LetvBaseObservable {
    private static final String TAG = AlbumGestureObservable.class.getSimpleName();
    /**
     * 手势移动
     */
    public static final String ON_GESTURE_CHANGE = TAG + 1;
    /**
     * 单击
     */
    public static final String ON_CLICK = TAG + 2;
    /**
     * 手指离开
     */
    public static final String ON_TOUCH_EVENT_UP = TAG + 3;
    /**
     * 双击 ccx
     */
    public static final String DOUBLE_CLICK = TAG + 4;
//    /**
//     * 设置手势无效
//     */
    //    public static final String ON_GESTURE_ENABLE = LedimVedioTagBean + 5;
//    /**
//     * 设置手势有效
//     */
    //    public static final String ON_GESTURE_DISABLE = LedimVedioTagBean + 6;

    /**
     * 调节进度
     * 
     * @author zhuqiao
     *
     */
    public static class ProgressRegulateNotify {
        public final int curPos;
        public final int total;
        public final boolean forward;

        public ProgressRegulateNotify(int curPos, int total, boolean forward) {
            this.curPos = curPos;
            this.total = total;
            this.forward = forward;
        }

    }

    /**
     * 音量改变
     * 
     * @author zhuqiao
     *
     */
    public static class VolumeChangeNotify {
        public final int max;
        public final int progress;
        public final VolumnChangeStyle style;
        public final boolean showSeekbar;

        public VolumeChangeNotify(int max, int progress, VolumnChangeStyle style) {
            this(max, progress, style, true);
        }

        public VolumeChangeNotify(int max, int progress, VolumnChangeStyle style, boolean showSeekBar) {
            this.max = max;
            this.progress = progress;
            this.style = style;
            this.showSeekbar = showSeekBar;
        }

    }

}
